package com.sumainfor.wx.tenant.service.impl;

import com.sumainfor.common.util.JsonResult;
import com.sumainfor.wx.tenant.dao.HoTenantBankMapper;
import com.sumainfor.wx.tenant.dao.HoTenantIdentitMapper;
import com.sumainfor.wx.tenant.service.HoTenantBankService;
import com.sumainfor.wx.tenant.service.HoTenantIdentitService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.locks.ReentrantLock;

/**
 * pc端调用微信租客端
 */
@Service
public class HoTenantBankServiceimpl implements HoTenantBankService {

    private ReentrantLock lock = new ReentrantLock(false);
    Logger log = LoggerFactory.getLogger(HoTenantBankServiceimpl.class);

    @Autowired
    private HoTenantBankMapper hoTenantBankMapper;
    /**
     * 根据租客的编号查询租客的实名认证信息
     */
    public JsonResult getHoTenantBank(Map<String, Object> params){
        JsonResult result=new JsonResult();
        Map<String,Object> map=hoTenantBankMapper.getHoTenantBank(params);
        if (map==null){
            map=new HashMap<String,Object>();
        }
        result.put(map);
        return result;
    }
}
